# -*- coding: utf-8 -*-
import requests,json,os,urllib,string,sys
from sqlHelper import *

reload(sys)
sys.setdefaultencoding('utf8')
ind=3

def getData(val,i):
    res=requests.get('http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=89&spec=&type=&ch=01&k=&offset_page=0&offset_num=0&num=60&asc=&page=1')
    res=res.content[res.content.index('({')+1:len(res.content)-13]
    print res
#    res=eval(res)

getData('',ind)
